package com.hzj.springcloud.service.impl;

import com.hzj.springcloud.dao.DeptDao;
import com.hzj.springcloud.pojo.Dept;
import com.hzj.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    DeptDao dd;

    @Override
    public List<Dept> show() {
        return dd.show();
    }

    @Override
    public Dept queryById(int id) {
        return dd.queryById(id);
    }

    @Override
    public int addDept(Dept dept) {
        return dd.addDept(dept);
    }
}
